getByTagName

public final static Element getByTagName(SearchContext $self, String tagName)
public final static Element getByTagName(SearchContext $self, String tagName)

Returns the first Element found in the current search context by the given tagName.

Since

8.0.0

Throws

if no element found.